package com.canaan.business.mapper.storehouse;

import com.canaan.business.domain.storehouse.StorehouseStockScrap;

import java.util.List;

/**
 * 报废仓库存Mapper接口
 *
 * @author ruoyi
 * @date 2023-03-06
 */
public interface StorehouseStockScrapMapper {
    /**
     * 查询报废仓库存
     *
     * @param id 报废仓库存主键
     * @return 报废仓库存
     */
    public StorehouseStockScrap selectStorehouseStockScrapById(Long id);

    /**
     * 查询报废仓库存列表
     *
     * @param storehouseStockScrap 报废仓库存
     * @return 报废仓库存集合
     */
    public List<StorehouseStockScrap> selectStorehouseStockScrapList(StorehouseStockScrap storehouseStockScrap);

    /**
     * 查询报废仓库存列表
     *
     * @param storehouseStockScrap 报废仓库存
     * @return 报废仓库存集合
     */
    public List<StorehouseStockScrap> selectStorehouseStockScrapList2(StorehouseStockScrap storehouseStockScrap);

    /**
     * 新增报废仓库存
     *
     * @param storehouseStockScrap 报废仓库存
     * @return 结果
     */
    public int insertStorehouseStockScrap(StorehouseStockScrap storehouseStockScrap);

    /**
     * 批量新增报废仓库存
     *
     * @param storehouseStockScrapList 报废仓库存列表
     * @return 结果
     */
    public int batchInsertStorehouseStockScrap(List<StorehouseStockScrap> storehouseStockScrapList);

    /**
     * 修改报废仓库存
     *
     * @param storehouseStockScrap 报废仓库存
     * @return 结果
     */
    public int updateStorehouseStockScrap(StorehouseStockScrap storehouseStockScrap);

    /**
     * 批量修改报废仓库存
     *
     * @param storehouseStockScrapList 报废仓库存列表
     * @return 结果
     */
    public int batchUpdateStorehouseStockScrap(List<StorehouseStockScrap> storehouseStockScrapList);

    /**
     * 删除报废仓库存
     *
     * @param id 报废仓库存主键
     * @return 结果
     */
    public int deleteStorehouseStockScrapById(Long id);

    /**
     * 批量删除报废仓库存
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStorehouseStockScrapByIds(Long[] ids);

    /**
     * 查询报废仓库存
     *
     * @param no 编号
     * @return 报废仓库存
     */
    public StorehouseStockScrap selectStorehouseStockScrapByNo(String no);

    /**
     * 批量删除报废仓库存
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    public int deleteStorehouseStockScrapByNos(String[] nos);

    /**
     * 删除报废仓库存信息
     *
     * @param no 编号
     * @return 结果
     */
    public int deleteStorehouseStockScrapByNo(String no);

}
